package com.meida.module.bus.provider.handler;

import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.interceptor.ExportInterceptor;
import com.meida.common.mybatis.model.ResultBody;
import com.meida.module.bus.client.entity.BusMaterial;
import com.meida.module.bus.provider.service.BusMaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component("busmaterialExportHandler")
public class MaterialhandlerExcertHandler  implements ExportInterceptor<BusMaterial> {
    @Autowired
    private BusMaterialService busMaterialService;
    @Override
    public ResultBody initData(Map params) {
        List<EntityMap> busMaterialList = busMaterialService.exceportData(params);
        return ResultBody.ok(busMaterialList);
    }

}
